import request from '@/utils/request'

export function listFileManager(query) {
  return request({
    url: '/system/fileManager/list',
    method: 'get',
    params: query
  })
}
export function selectList(query) {
  return request({
    url: '/system/fileManager/selectList',
    method: 'get',
    params: query
  })
}
export function delFileManager(compFeeIds) {
  return request({
    url: '/system/fileManager/' + compFeeIds,
    method: 'delete'
  })
}
export function fileManagerAdd(data) {
  return request({
    url: '/system/fileManager',
    method: 'post',
    data: data
  })
}
export function updategFileManager(data) {
  return request({
    url: '/system/fileManager',
    method: 'put',
    data: data
  })
}
export function fileManagerInfo(query) {
  return request({
    url: '/system/fileManager/' + query,
    method: 'get',
    params: query
  })
}
export function setAdvShow(fileManagerId, isShow) {
  return request({
    url: '/system/fileManager/setAdvShow?fileManagerId=' + fileManagerId + '&isShow=' + isShow,
    method: 'get',
  })
}